home *** CD-ROM | disk | FTP | other *** search
- Path: news.netland.nl!usenet
- From: Martin Bilstra <martin@advance.nl>
- Newsgroups: comp.lang.c
- Subject: file open ??
- Date: Mon, 01 Apr 1996 12:30:42 +0100
- Organization: Advance Interactive
- Message-ID: <315FBE62.6E4A@advance.nl>
- NNTP-Posting-Host: ms1tty00.miconnet.nl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
-
- Hello everyone,
-
- I'm having the following problem :
-
- In a program I'm using some extern variables. After calling an other function those variables are
- getting there values, after this the function returns back to the main program with the related
- value. In the main program the extern variables now have a value where I work with, but then I
- get a problem. After returning from the function, I open a file but then the values belonging to
- the extern variables are gone (there value is nothing).
-
- My own solution was the following :
- I open the file before I call the function and I close the file after I stored the variables. But
- I'm not convinced that's the real solution to the problem, because in other programs I do the
- same and then things are going well.
-
- Can someone help me ?
- Thanks anyway,
-
- Martin.
-